package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * MQTT配置信息对象 mqtt_config
 * 
 * @author LGD
 * @date 2025-07-18
 */
public class MqttConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 网关配置ID */
    private Long configId;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String msgType;

    /** MQTT_IP */
    @Excel(name = "MQTT_IP")
    private String mqttIp;

    /** MQTT 端口 */
    @Excel(name = "MQTT 端口")
    private String mqttPort;

    /** MQTT 连接用户名 */
    @Excel(name = "MQTT 连接用户名")
    private String mqttName;

    /** MQTT 连接 密码 */
    @Excel(name = "MQTT 连接 密码")
    private String mqttPw;

    /** 消息 ID */
    @Excel(name = "消息 ID")
    private Long msgId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }

    public void setMsgType(String msgType) 
    {
        this.msgType = msgType;
    }

    public String getMsgType() 
    {
        return msgType;
    }

    public void setMqttIp(String mqttIp) 
    {
        this.mqttIp = mqttIp;
    }

    public String getMqttIp() 
    {
        return mqttIp;
    }

    public void setMqttPort(String mqttPort) 
    {
        this.mqttPort = mqttPort;
    }

    public String getMqttPort() 
    {
        return mqttPort;
    }

    public void setMqttName(String mqttName) 
    {
        this.mqttName = mqttName;
    }

    public String getMqttName() 
    {
        return mqttName;
    }

    public void setMqttPw(String mqttPw) 
    {
        this.mqttPw = mqttPw;
    }

    public String getMqttPw() 
    {
        return mqttPw;
    }

    public void setMsgId(Long msgId) 
    {
        this.msgId = msgId;
    }

    public Long getMsgId() 
    {
        return msgId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("configId", getConfigId())
            .append("msgType", getMsgType())
            .append("mqttIp", getMqttIp())
            .append("mqttPort", getMqttPort())
            .append("mqttName", getMqttName())
            .append("mqttPw", getMqttPw())
            .append("msgId", getMsgId())
            .append("status", getStatus())
            .toString();
    }
}
